import java.util.*;

public class PANduan {
    public static void main(String [] args){
        Scanner xx =new Scanner(System.in);
        System.out.println("请输入你的工作类型：(经理，程序员或者保洁阿姨)");
        String leixin =xx.nextLine();
        if (leixin.equals("经理")){
            System.out.println("请输入你的id");
            int a1 =xx.nextInt();
            System.out.println("请输入你的姓名");
            String a2 =xx.next();
            System.out.println("请输入你的工资");
            int a3 = xx.nextInt();
            System.out.println("请输入你的职位奖金:（0到10000之间）");
            int a4 = xx.nextInt();
            Manager m1 = new Manager(a1,a2,a3,a4);

            m1.post();}
        else if(leixin.equals("程序员")){
            System.out.println("请输入你的id");
            int a10 =xx.nextInt();
            System.out.println("请输入你的姓名");
            String a11 =xx.next();
            System.out.println("请输入你的工资");
            int a12 = xx.nextInt();
            System.out.println("请输入你所使用的语言");
            String a13 = xx.next();
            Tozi m2 = new Tozi(a10,a11,a12,a13);

            m2.post();
        }

        else if(leixin.equals("保洁阿姨")){
            System.out.println("请输入你的id");
            int a20 =xx.nextInt();
            System.out.println("请输入你的姓名");
            String a21 =xx.next();
            System.out.println("请输入你的工资");
            int a22 = xx.nextInt();
            System.out.println("请输入你的年龄");
            int a23 = xx.nextInt();
            Ayi m3 = new Ayi(a20,a21,a22,a23);

            m3.post();
        }

        else System.exit(0);

        }
    }
